country_decisions = {

	russian_nation = {
		major = yes
		potential = {
			normal_or_historical_nations = yes
			NOT = { has_country_flag = formed_russia_flag }
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			NOT = { exists = RUS }
			NOT = { exists = KRU }
			NOT = { exists = SOV }
			NOT = { tag = POL }
			NOT = { tag = PAP }
			NOT = { tag = HLR }
			NOT = { tag = SOV }
			NOT = { tag = EUR }
			OR = {
				primary_culture = russian
				primary_culture = novgorodian
			}
			OR = {
				ai = no
				AND = {
					ai = yes
					num_of_cities = 3
				}
			}
			is_colonial_nation = no
			OR = {
				is_former_colonial_nation = no
				AND = {
					is_former_colonial_nation = yes
					ai = no
				}
			}
		}
		allow = {
			NOT = { exists = RUS }
			adm_tech = 55
			is_free_or_tributary_trigger = yes
			is_nomad = no
			is_at_war = no
			owns_core_province = 295			# Moskva
			owns_core_province = 310			# Novgorod
			OR = {
				owns_core_province = 294		# Tver
				owns_core_province = 308		# Yaroslavl	
			}
			OR = {
				owns_core_province = 301		# Ryazan
				owns_core_province = 293		# Smolensk
			}
			OR = {
				owns_core_province = 306		# Nijni-Novgorod
				owns_core_province = 307		# Vladimir	
			}			
		}
		effect = {
			change_tag = RUS
			if = {
				limit = {
					is_part_of_hre = yes
					NOT = { has_country_modifier = european_union }
					is_elector = no
					is_emperor = no
				}
				every_owned_province = {
					limit = {
						is_part_of_hre = yes
					}
					set_in_empire = no
				}
			}
			if = {
				limit = {
					OR = {
						government = veche_republic
						government = principality
					}
				}
				set_government_and_rank = {
					government = tsardom
					rank = 3
				}
				else = {
					set_government_rank = 3
				}
			}
			russia_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = RUS
			}
			crimea_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = RUS
			}
			saratov_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = RUS
			}
			bashkiria_area = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = RUS
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 7300
			}
			if = {
				limit = {
					has_custom_ideas = no
				}
				country_event = { id = ideagroups.1 } #Swap Ideas
			}
			set_country_flag = formed_russia_flag
			add_prestige = 25
		}
		ai_will_do = {
			factor = 1
		}
		ai_importance = 400
	}
	
}
